home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Software Dispatch
/
Apple Software Dispatch.iso
/
Software Dispatch Files
/
Super Munchers
/
Sample Application
/
Sample Application.rsrc
/
CODE_5_Init.txt
< prev
next >
Wrap
Text File
|
1993-06-23
|
61KB
|
1,102 lines
# near model CODE resource
# jump table entries: 1448-1448 (1 of them)
fn00000000:
00000000 4E56 0000 link A6, 0
00000004 2F07 move.l -[A7], D7
00000006 558F subq.l A7, 2
00000008 4EAD 0582 jsr [A5 + 0x582 /* export_172 */]
0000000C 3E1F move.w D7, [A7]+
0000000E 3B7C 0001 DCA0 move.w [A5 - 0x2360], 0x1
00000014 2E2E FFFC move.l D7, [A6 - 0x4]
00000018 4E5E unlink A6
0000001A 4E75 rts
fn0000001C:
0000001C 4E56 0000 link A6, 0
00000020 203C 0000 0B44 move.l D0, 0xB44
00000026 A11E syscall NewPtr, flags=1
00000028 2B48 D894 move.l [A5 - 0x276C], A0
0000002C 6612 bne +0x14 /* 00000040 */
0000002E 486D D6C2 pea.l [A5 - 0x293E]
00000032 3038 0220 move.w D0, [0x00000220 /* MemErr */]
00000036 48C0 ext.l D0
00000038 2F00 move.l -[A7], D0
0000003A 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
0000003E 504F addq.w A7, 8
label00000040:
00000040 203C 0000 0242 move.l D0, 0x242
00000046 A11E syscall NewPtr, flags=1
00000048 2B48 D78A move.l [A5 - 0x2876], A0
0000004C 6612 bne +0x14 /* 00000060 */
0000004E 486D D6CE pea.l [A5 - 0x2932]
00000052 3038 0220 move.w D0, [0x00000220 /* MemErr */]
00000056 48C0 ext.l D0
00000058 2F00 move.l -[A7], D0
0000005A 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
0000005E 504F addq.w A7, 8
label00000060:
00000060 426D DADA clr.w [A5 - 0x2526]
00000064 426D DADC clr.w [A5 - 0x2524]
00000068 4EAD 012A jsr [A5 + 0x12A /* export_33 */]
0000006C 4A6D DC9E tst.w [A5 - 0x2362]
00000070 662A bne +0x2C /* 0000009C */
00000072 4EBA 0030 jsr [PC + 0x30 /* 000000A4 */]
00000076 4A00 tst.b D0
00000078 6622 bne +0x24 /* 0000009C */
0000007A 206D D894 movea.l A0, [A5 - 0x276C]
0000007E 7002 moveq.l D0, 0x02
00000080 B068 0004 cmp.w D0, [A0 + 0x4]
00000084 670C beq +0xE /* 00000092 */
00000086 700B moveq.l D0, 0x0B
00000088 2F00 move.l -[A7], D0
0000008A 4EAD 0152 jsr [A5 + 0x152 /* export_38 */]
0000008E 584F addq.w A7, 4
00000090 600A bra +0xC /* 0000009C */
label00000092:
00000092 700C moveq.l D0, 0x0C
00000094 2F00 move.l -[A7], D0
00000096 4EAD 0152 jsr [A5 + 0x152 /* export_38 */]
0000009A 584F addq.w A7, 4
label0000009C:
0000009C 4EAD 0132 jsr [A5 + 0x132 /* export_34 */]
000000A0 4E5E unlink A6
000000A2 4E75 rts
fn000000A4:
000000A4 4E56 FF00 link A6, -0x0100
000000A8 48E7 0108 movem.l -[A7], D7,A4
000000AC 49EE FF00 lea.l A4, [A6 - 0x100]
000000B0 206D D894 movea.l A0, [A5 - 0x276C]
000000B4 0C90 4D45 4343 cmpi.l [A0], 0x4D454343 /* 'MECC' */
000000BA 6640 bne +0x42 /* 000000FC */
000000BC 206D D894 movea.l A0, [A5 - 0x276C]
000000C0 7002 moveq.l D0, 0x02
000000C2 B068 0004 cmp.w D0, [A0 + 0x4]
000000C6 6634 bne +0x36 /* 000000FC */
000000C8 2F0C move.l -[A7], A4
000000CA 3F3C 0FA0 move.w -[A7], 0xFA0
000000CE 700A moveq.l D0, 0x0A
000000D0 3F00 move.w -[A7], D0
000000D2 4EAD 034A jsr [A5 + 0x34A /* export_101 */]
000000D6 4247 clr.w D7
000000D8 6016 bra +0x18 /* 000000F0 */
label000000DA:
000000DA 206D D894 movea.l A0, [A5 - 0x276C]
000000DE 1034 7000 move.b D0, [A4 + D7.w]
000000E2 B030 7006 cmp.b D0, [A0 + D7.w + 0x6]
000000E6 6704 beq +0x6 /* 000000EC */
000000E8 7000 moveq.l D0, 0x00
000000EA 6012 bra +0x14 /* 000000FE */
label000000EC:
000000EC 3007 move.w D0, D7
000000EE 5247 addq.w D7, 1
label000000F0:
000000F0 7000 moveq.l D0, 0x00
000000F2 1014 move.b D0, [A4]
000000F4 B047 cmp.w D0, D7
000000F6 6CE2 bge -0x1C /* 000000DA */
000000F8 7001 moveq.l D0, 0x01
000000FA 6002 bra +0x4 /* 000000FE */
label000000FC:
000000FC 7000 moveq.l D0, 0x00
label000000FE:
000000FE 4CEE 1080 FEF8 movem.l D7,A4, [A6 - 0x108]
00000104 4E5E unlink A6
00000106 4E75 rts
export_181:
00000108 4E56 0000 link A6, 0
0000010C 4EBA 0064 jsr [PC + 0x64 /* 00000172 */]
00000110 558F subq.l A7, 2
00000112 4EAD 0372 jsr [A5 + 0x372 /* export_106 */]
00000116 4EBA 054A jsr [PC + 0x54A /* 00000662 */]
0000011A 4EBA 0428 jsr [PC + 0x428 /* 00000544 */]
0000011E 4EAD 04DA jsr [A5 + 0x4DA /* export_151 */]
00000122 4EAD 04EA jsr [A5 + 0x4EA /* export_153 */]
00000126 4EAD 0692 jsr [A5 + 0x692 /* export_206 */]
0000012A 486D 0692 pea.l [A5 + 0x692 /* export_206 */]
0000012E A9F1 syscall UnloadSeg
00000130 4EBA 02DA jsr [PC + 0x2DA /* 0000040C */]
00000134 4EBA 0210 jsr [PC + 0x210 /* 00000346 */]
00000138 4EBA 015E jsr [PC + 0x15E /* 00000298 */]
0000013C 4EBA 0340 jsr [PC + 0x340 /* 0000047E */]
00000140 4EBA FEDA jsr [PC - 0x126 /* 0000001C */]
00000144 4EBA 00A6 jsr [PC + 0xA6 /* 000001EC */]
00000148 4EBA 0012 jsr [PC + 0x12 /* 0000015C */]
0000014C 4EBA FEB2 jsr [PC - 0x14E /* 00000000 */]
00000150 4EBA 00E4 jsr [PC + 0xE4 /* 00000236 */]
00000154 4EBA 011E jsr [PC + 0x11E /* 00000274 */]
00000158 4E5E unlink A6
0000015A 4E75 rts
fn0000015C:
0000015C 4E56 FFFC link A6, -0x0004
00000160 41EE FFFC lea.l A0, [A6 - 0x4]
00000164 20B8 020C move.l [A0], [0x0000020C /* Time */]
00000168 2B6E FFFC FE00 move.l [A5 - 0x200], [A6 - 0x4]
0000016E 4E5E unlink A6
00000170 4E75 rts
fn00000172:
00000172 4E56 FFA0 link A6, -0x0060
00000176 48E7 1100 movem.l -[A7], D3,D7
0000017A 486D FE7E pea.l [A5 - 0x182]
0000017E A86E syscall InitGraf
00000180 A8FE syscall InitFonts
00000182 A912 syscall InitWindows
00000184 A930 syscall InitMenus
00000186 A9CC syscall TEInit
00000188 7000 moveq.l D0, 0x00
0000018A 2F00 move.l -[A7], D0
0000018C A97B syscall InitDialogs
0000018E 70FF moveq.l D0, 0xFFFFFFFF
00000190 3F00 move.w -[A7], D0
00000192 7200 moveq.l D1, 0x00
00000194 3F01 move.w -[A7], D1
00000196 201F move.l D0, [A7]+
00000198 A032 syscall FlushEvents
0000019A 3D7C 0001 FFB6 move.w [A6 - 0x4A], 0x1
000001A0 41EE FFA0 lea.l A0, [A6 - 0x60]
000001A4 A00F syscall MountVol
000001A6 3D7C 0002 FFB6 move.w [A6 - 0x4A], 0x2
000001AC 41EE FFA0 lea.l A0, [A6 - 0x60]
000001B0 A00F syscall MountVol
000001B2 4247 clr.w D7
label000001B4:
000001B4 558F subq.l A7, 2
000001B6 70FF moveq.l D0, 0xFFFFFFFF
000001B8 3F00 move.w -[A7], D0
000001BA 486E FFF0 pea.l [A6 - 0x10]
000001BE A971 syscall EventAvail
000001C0 544F addq.w A7, 2
000001C2 3007 move.w D0, D7
000001C4 5247 addq.w D7, 1
000001C6 0C47 0003 cmpi.w D7, 0x3
000001CA 6DE8 blt -0x16 /* 000001B4 */
000001CC 598F subq.l A7, 4
000001CE A9FA syscall UnloadScrap/UnlodeScrap
000001D0 A063 syscall MaxApplZone
000001D2 7E01 moveq.l D7, 0x01
000001D4 584F addq.w A7, 4
label000001D6:
000001D6 A036 syscall MoreMasters
000001D8 5247 addq.w D7, 1
000001DA 0C47 000A cmpi.w D7, 0xA /* '\n' */
000001DE 6FF6 ble -0x8 /* 000001D6 */
000001E0 A850 syscall InitCursor
000001E2 4CEE 0088 FF98 movem.l D3,D7, [A6 - 0x68]
000001E8 4E5E unlink A6
000001EA 4E75 rts
fn000001EC:
000001EC 4E56 0000 link A6, 0
000001F0 2F0C move.l -[A7], A4
000001F2 598F subq.l A7, 4
000001F4 3F3C 03E8 move.w -[A7], 0x3E8
000001F8 A9C0 syscall GetNewMBar
000001FA 285F movea.l A4, [A7]+
000001FC 200C move.l D0, A4
000001FE 6614 bne +0x16 /* 00000214 */
00000200 486D E034 pea.l [A5 - 0x1FCC]
00000204 558F subq.l A7, 2
00000206 A9AF syscall ResError
00000208 301F move.w D0, [A7]+
0000020A 48C0 ext.l D0
0000020C 2F00 move.l -[A7], D0
0000020E 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
00000212 504F addq.w A7, 8
label00000214:
00000214 2F0C move.l -[A7], A4
00000216 A93C syscall SetMenuBar
00000218 204C movea.l A0, A4
0000021A A023 syscall DisposHandle/DisposeHandle
0000021C 598F subq.l A7, 4
0000021E 3F3C 03E8 move.w -[A7], 0x3E8
00000222 A949 syscall GetMenuHandle
00000224 2F3C 4452 5652 move.l -[A7], 0x44525652 /* 'DRVR' */
0000022A A94D syscall AppendResMenu/AddResMenu
0000022C A937 syscall DrawMenuBar
0000022E 286E FFFC movea.l A4, [A6 - 0x4]
00000232 4E5E unlink A6
00000234 4E75 rts
fn00000236:
00000236 4E56 0000 link A6, 0
0000023A 203C 0000 0564 move.l D0, 0x564
00000240 A122 syscall NewHandle, flags=1
00000242 2B48 DB22 move.l [A5 - 0x24DE], A0
00000246 203C 0000 0564 move.l D0, 0x564
0000024C A122 syscall NewHandle, flags=1
0000024E 2B48 DB1E move.l [A5 - 0x24E2], A0
00000252 4AAD DB22 tst.l [A5 - 0x24DE]
00000256 6706 beq +0x8 /* 0000025E */
00000258 4AAD DB1E tst.l [A5 - 0x24E2]
0000025C 6612 bne +0x14 /* 00000270 */
label0000025E:
0000025E 486D E040 pea.l [A5 - 0x1FC0]
00000262 3038 0220 move.w D0, [0x00000220 /* MemErr */]
00000266 48C0 ext.l D0
00000268 2F00 move.l -[A7], D0
0000026A 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
0000026E 504F addq.w A7, 8
label00000270:
00000270 4E5E unlink A6
00000272 4E75 rts
fn00000274:
00000274 4E56 0000 link A6, 0
00000278 2F07 move.l -[A7], D7
0000027A 4EAD 049A jsr [A5 + 0x49A /* export_143 */]
0000027E 3E00 move.w D7, D0
00000280 670E beq +0x10 /* 00000290 */
00000282 486D E048 pea.l [A5 - 0x1FB8]
00000286 48C7 ext.l D7
00000288 2F07 move.l -[A7], D7
0000028A 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
0000028E 504F addq.w A7, 8
label00000290:
00000290 2E2E FFFC move.l D7, [A6 - 0x4]
00000294 4E5E unlink A6
00000296 4E75 rts
fn00000298:
00000298 4E56 0000 link A6, 0
0000029C 598F subq.l A7, 4
0000029E 3F3C 03E9 move.w -[A7], 0x3E9
000002A2 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
000002A6 A9BE syscall GetNewControl
000002A8 2B5F DCB2 move.l [A5 - 0x234E], [A7]+
000002AC 598F subq.l A7, 4
000002AE 3F3C 03EA move.w -[A7], 0x3EA
000002B2 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
000002B6 A9BE syscall GetNewControl
000002B8 2B5F DCAE move.l [A5 - 0x2352], [A7]+
000002BC 598F subq.l A7, 4
000002BE 3F3C 03EB move.w -[A7], 0x3EB
000002C2 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
000002C6 A9BE syscall GetNewControl
000002C8 2B5F DCAA move.l [A5 - 0x2356], [A7]+
000002CC 598F subq.l A7, 4
000002CE 3F3C 03EC move.w -[A7], 0x3EC
000002D2 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
000002D6 A9BE syscall GetNewControl
000002D8 2B5F DCA6 move.l [A5 - 0x235A], [A7]+
000002DC 598F subq.l A7, 4
000002DE 3F3C 03E8 move.w -[A7], 0x3E8
000002E2 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
000002E6 A9BE syscall GetNewControl
000002E8 2B5F DCA2 move.l [A5 - 0x235E], [A7]+
000002EC 4AAD DCB2 tst.l [A5 - 0x234E]
000002F0 6718 beq +0x1A /* 0000030A */
000002F2 4AAD DCAE tst.l [A5 - 0x2352]
000002F6 6712 beq +0x14 /* 0000030A */
000002F8 4AAD DCAA tst.l [A5 - 0x2356]
000002FC 670C beq +0xE /* 0000030A */
000002FE 4AAD DCA6 tst.l [A5 - 0x235A]
00000302 6706 beq +0x8 /* 0000030A */
00000304 4AAD DCA2 tst.l [A5 - 0x235E]
00000308 6614 bne +0x16 /* 0000031E */
label0000030A:
0000030A 486D E052 pea.l [A5 - 0x1FAE]
0000030E 558F subq.l A7, 2
00000310 A9AF syscall ResError
00000312 301F move.w D0, [A7]+
00000314 48C0 ext.l D0
00000316 2F00 move.l -[A7], D0
00000318 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
0000031C 504F addq.w A7, 8
label0000031E:
0000031E 206D DCAA movea.l A0, [A5 - 0x2356]
00000322 2050 movea.l A0, [A0]
00000324 117C 00FF 0010 move.b [A0 + 0x10], 0xFF
0000032A 206D DCA6 movea.l A0, [A5 - 0x235A]
0000032E 2050 movea.l A0, [A0]
00000330 117C 00FF 0010 move.b [A0 + 0x10], 0xFF
00000336 206D DCAE movea.l A0, [A5 - 0x2352]
0000033A 2050 movea.l A0, [A0]
0000033C 117C 00FF 0010 move.b [A0 + 0x10], 0xFF
00000342 4E5E unlink A6
00000344 4E75 rts
fn00000346:
00000346 4E56 FFF8 link A6, -0x0008
0000034A 48E7 0108 movem.l -[A7], D7,A4
0000034E 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
00000352 A873 syscall SetPort
00000354 4A2D DCBE tst.b [A5 - 0x2342]
00000358 673C beq +0x3E /* 00000396 */
0000035A 486E FFF8 pea.l [A6 - 0x8]
0000035E 2F3C 8001 8001 move.l -[A7], 0x80018001
00000364 2F3C 7FFF 7FFF move.l -[A7], 0x7FFF7FFF
0000036A A8A7 syscall SetRect
0000036C 598F subq.l A7, 4
0000036E 486E FFF8 pea.l [A6 - 0x8]
00000372 AA27 syscall GetMaxDevice
00000374 285F movea.l A4, [A7]+
00000376 2054 movea.l A0, [A4]
00000378 43EE FFF8 lea.l A1, [A6 - 0x8]
0000037C 41E8 0022 lea.l A0, [A0 + 0x22]
00000380 22D8 move.l [A1]+, [A0]+
00000382 22D8 move.l [A1]+, [A0]+
00000384 598F subq.l A7, 4
00000386 AA2A syscall GetMainDevice
00000388 B9DF cmpa.l A4, [A7]+
0000038A 661E bne +0x20 /* 000003AA */
0000038C 3038 0BAA move.w D0, [0x00000BAA /* MBarHeight */]
00000390 D16E FFF8 add.w [A6 - 0x8], D0
00000394 6014 bra +0x16 /* 000003AA */
label00000396:
00000396 41EE FFF8 lea.l A0, [A6 - 0x8]
0000039A 43ED FE0A lea.l A1, [A5 - 0x1F6]
0000039E 20D9 move.l [A0]+, [A1]+
000003A0 20D9 move.l [A0]+, [A1]+
000003A2 3038 0BAA move.w D0, [0x00000BAA /* MBarHeight */]
000003A6 D16E FFF8 add.w [A6 - 0x8], D0
label000003AA:
000003AA 302E FFFC move.w D0, [A6 - 0x4]
000003AE 48C0 ext.l D0
000003B0 322E FFF8 move.w D1, [A6 - 0x8]
000003B4 48C1 ext.l D1
000003B6 D280 add.l D1, D0
000003B8 92BC 0000 0142 sub.l D1, 0x142
000003BE 2001 move.l D0, D1
000003C0 7202 moveq.l D1, 0x02
000003C2 4EAD 02BA jsr [A5 + 0x2BA /* export_83 */]
000003C6 3E00 move.w D7, D0
000003C8 0C47 0014 cmpi.w D7, 0x14
000003CC 6704 beq +0x6 /* 000003D2 */
000003CE 0647 0009 addi.w D7, 0x9 /* '\t' */
label000003D2:
000003D2 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
000003D6 302E FFFE move.w D0, [A6 - 0x2]
000003DA 48C0 ext.l D0
000003DC 322E FFFA move.w D1, [A6 - 0x6]
000003E0 48C1 ext.l D1
000003E2 D280 add.l D1, D0
000003E4 92BC 0000 0200 sub.l D1, 0x200
000003EA 2001 move.l D0, D1
000003EC 7202 moveq.l D1, 0x02
000003EE 4EAD 02BA jsr [A5 + 0x2BA /* export_83 */]
000003F2 3F00 move.w -[A7], D0
000003F4 3F07 move.w -[A7], D7
000003F6 7000 moveq.l D0, 0x00
000003F8 1F00 move.b -[A7], D0
000003FA A91B syscall MoveWindow
000003FC 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
00000400 A915 syscall ShowWindow
00000402 4CEE 1080 FFF0 movem.l D7,A4, [A6 - 0x10]
00000408 4E5E unlink A6
0000040A 4E75 rts
fn0000040C:
0000040C 4E56 0000 link A6, 0
00000410 203C 0000 009C move.l D0, 0x9C
00000416 A11E syscall NewPtr, flags=1
00000418 2B48 DCD6 move.l [A5 - 0x232A], A0
0000041C 6612 bne +0x14 /* 00000430 */
0000041E 486D E062 pea.l [A5 - 0x1F9E]
00000422 3038 0220 move.w D0, [0x00000220 /* MemErr */]
00000426 48C0 ext.l D0
00000428 2F00 move.l -[A7], D0
0000042A 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
0000042E 504F addq.w A7, 8
label00000430:
00000430 4A2D DCC2 tst.b [A5 - 0x233E]
00000434 6716 beq +0x18 /* 0000044C */
00000436 598F subq.l A7, 4
00000438 3F3C 03E8 move.w -[A7], 0x3E8
0000043C 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
00000440 70FF moveq.l D0, 0xFFFFFFFF
00000442 2F00 move.l -[A7], D0
00000444 AA46 syscall GetNewCWindow
00000446 2B5F DCD6 move.l [A5 - 0x232A], [A7]+
0000044A 6014 bra +0x16 /* 00000460 */
label0000044C:
0000044C 598F subq.l A7, 4
0000044E 3F3C 03E8 move.w -[A7], 0x3E8
00000452 2F2D DCD6 move.l -[A7], [A5 - 0x232A]
00000456 70FF moveq.l D0, 0xFFFFFFFF
00000458 2F00 move.l -[A7], D0
0000045A A9BD syscall GetNewWindow
0000045C 2B5F DCD6 move.l [A5 - 0x232A], [A7]+
label00000460:
00000460 4AAD DCD6 tst.l [A5 - 0x232A]
00000464 6614 bne +0x16 /* 0000047A */
00000466 486D E072 pea.l [A5 - 0x1F8E]
0000046A 558F subq.l A7, 2
0000046C A9AF syscall ResError
0000046E 301F move.w D0, [A7]+
00000470 48C0 ext.l D0
00000472 2F00 move.l -[A7], D0
00000474 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
00000478 504F addq.w A7, 8
label0000047A:
0000047A 4E5E unlink A6
0000047C 4E75 rts
fn0000047E:
0000047E 4E56 FCF0 link A6, -0x0310
00000482 48E7 0318 movem.l -[A7], D6,D7,A3,A4
00000486 47EE FF00 lea.l A3, [A6 - 0x100]
0000048A 49EE FE00 lea.l A4, [A6 - 0x200]
0000048E 558F subq.l A7, 2
00000490 2F0B move.l -[A7], A3
00000492 486D D71E pea.l [A5 - 0x28E2]
00000496 486D D720 pea.l [A5 - 0x28E0]
0000049A 4EAD 0332 jsr [A5 + 0x332 /* export_98 */]
0000049E 486D D724 pea.l [A5 - 0x28DC]
000004A2 3F3C 0FA0 move.w -[A7], 0xFA0
000004A6 7005 moveq.l D0, 0x05
000004A8 3F00 move.w -[A7], D0
000004AA 4EAD 034A jsr [A5 + 0x34A /* export_101 */]
000004AE 4A6D FDA4 tst.w [A5 - 0x25C]
000004B2 544F addq.w A7, 2
000004B4 6600 0084 bne +0x86 /* 0000053A */
000004B8 486E FDFE pea.l [A6 - 0x202]
000004BC 486E FCF4 pea.l [A6 - 0x30C]
000004C0 4EAD 0312 jsr [A5 + 0x312 /* export_94 */]
000004C4 7001 moveq.l D0, 0x01
000004C6 B06E FDFE cmp.w D0, [A6 - 0x202]
000004CA 6618 bne +0x1A /* 000004E4 */
000004CC 2F0C move.l -[A7], A4
000004CE 3F3C 0FA0 move.w -[A7], 0xFA0
000004D2 7008 moveq.l D0, 0x08
000004D4 3F00 move.w -[A7], D0
000004D6 4EAD 034A jsr [A5 + 0x34A /* export_101 */]
000004DA 2F0C move.l -[A7], A4
000004DC 4EAD 00E2 jsr [A5 + 0xE2 /* export_24 */]
000004E0 A9F4 syscall ExitToShell
000004E2 584F addq.w A7, 4
label000004E4:
000004E4 7E01 moveq.l D7, 0x01
000004E6 604C bra +0x4E /* 00000534 */
label000004E8:
000004E8 3F07 move.w -[A7], D7
000004EA 486E FCF6 pea.l [A6 - 0x30A]
000004EE 4EAD 031A jsr [A5 + 0x31A /* export_95 */]
000004F2 0CAE 534D 4346 FCF8 cmpi.l [A6 - 0x308], 0x534D4346 /* 'SMCF' */
000004FA 6634 bne +0x36 /* 00000530 */
000004FC 3F07 move.w -[A7], D7
000004FE 4EAD 0322 jsr [A5 + 0x322 /* export_96 */]
00000502 558F subq.l A7, 2
00000504 3F2E FCF6 move.w -[A7], [A6 - 0x30A]
00000508 486D D71E pea.l [A5 - 0x28E2]
0000050C 486D D720 pea.l [A5 - 0x28E0]
00000510 486E FCF0 pea.l [A6 - 0x310]
00000514 4EAD 033A jsr [A5 + 0x33A /* export_99 */]
00000518 3C1F move.w D6, [A7]+
0000051A 41EE FCFE lea.l A0, [A6 - 0x302]
0000051E 43ED D724 lea.l A1, [A5 - 0x28DC]
00000522 7000 moveq.l D0, 0x00
00000524 102E FCFE move.b D0, [A6 - 0x302]
00000528 5240 addq.w D0, 1
0000052A 48C0 ext.l D0
0000052C A02E syscall BlockMove/BlockMoveData
0000052E 600A bra +0xC /* 0000053A */
label00000530:
00000530 3007 move.w D0, D7
00000532 5247 addq.w D7, 1
label00000534:
00000534 BE6E FCF4 cmp.w D7, [A6 - 0x30C]
00000538 6FAE ble -0x50 /* 000004E8 */
label0000053A:
0000053A 4CEE 18C0 FCE0 movem.l D6,D7,A3,A4, [A6 - 0x320]
00000540 4E5E unlink A6
00000542 4E75 rts
fn00000544:
00000544 4E56 FF00 link A6, -0x0100
00000548 48E7 0108 movem.l -[A7], D7,A4
0000054C 49EE FF00 lea.l A4, [A6 - 0x100]
00000550 422D DCC4 clr.b [A5 - 0x233C]
00000554 4A2D DCCF tst.b [A5 - 0x2331]
00000558 674A beq +0x4C /* 000005A4 */
0000055A 2F0C move.l -[A7], A4
0000055C 3F3C 0FA0 move.w -[A7], 0xFA0
00000560 7006 moveq.l D0, 0x06
00000562 3F00 move.w -[A7], D0
00000564 4EAD 034A jsr [A5 + 0x34A /* export_101 */]
00000568 558F subq.l A7, 2
0000056A 2F0C move.l -[A7], A4
0000056C 7000 moveq.l D0, 0x00
0000056E 3F00 move.w -[A7], D0
00000570 7201 moveq.l D1, 0x01
00000572 1F01 move.b -[A7], D1
00000574 A9C4 syscall OpenRFPerm
00000576 3E1F move.w D7, [A7]+
00000578 0C47 FFFF cmpi.w D7, 0xFFFF
0000057C 6616 bne +0x18 /* 00000594 */
0000057E 2F0C move.l -[A7], A4
00000580 3F3C 0FA0 move.w -[A7], 0xFA0
00000584 7007 moveq.l D0, 0x07
00000586 3F00 move.w -[A7], D0
00000588 4EAD 034A jsr [A5 + 0x34A /* export_101 */]
0000058C 558F subq.l A7, 2
0000058E 2F0C move.l -[A7], A4
00000590 A997 syscall OpenResFile
00000592 3E1F move.w D7, [A7]+
label00000594:
00000594 0C47 FFFF cmpi.w D7, 0xFFFF
00000598 56C0 sne D0
0000059A 0240 0001 andi.w D0, 0x1
0000059E 48C0 ext.l D0
000005A0 1B40 DCC4 move.b [A5 - 0x233C], D0
label000005A4:
000005A4 4CEE 1080 FEF8 movem.l D7,A4, [A6 - 0x108]
000005AA 4E5E unlink A6
000005AC 4E75 rts
fn000005AE:
000005AE 4E56 0000 link A6, 0
000005B2 0C6D 0605 DCCA cmpi.w [A5 - 0x2336], 0x605
000005B8 6C04 bge +0x6 /* 000005BE */
000005BA 7000 moveq.l D0, 0x00
000005BC 600A bra +0xC /* 000005C8 */
label000005BE:
000005BE 2F3C 0000 A1AD move.l -[A7], 0xA1AD
000005C4 4EBA 001A jsr [PC + 0x1A /* 000005E0 */]
label000005C8:
000005C8 4E5E unlink A6
000005CA 4E75 rts
fn000005CC:
000005CC 4E56 0000 link A6, 0
000005D0 323C 0800 move.w D1, 0x800
000005D4 C26E 000A and.w D1, [A6 + 0xA]
000005D8 56C0 sne D0
000005DA 4400 neg.b D0
000005DC 4E5E unlink A6
000005DE 4E75 rts
fn000005E0:
000005E0 4E56 0000 link A6, 0
000005E4 48E7 0700 movem.l -[A7], D5,D6,D7
000005E8 3E2E 000A move.w D7, [A6 + 0xA]
000005EC 48C7 ext.l D7
000005EE 2F07 move.l -[A7], D7
000005F0 4EBA FFDA jsr [PC - 0x26 /* 000005CC */]
000005F4 1C00 move.b D6, D0
000005F6 7000 moveq.l D0, 0x00
000005F8 1006 move.b D0, D6
000005FA 0C40 0001 cmpi.w D0, 0x1
000005FE 584F addq.w A7, 4
00000600 6636 bne +0x38 /* 00000638 */
00000602 0247 07FF andi.w D7, 0x7FF
00000606 598F subq.l A7, 4
00000608 3F3C A86E move.w -[A7], 0xA86E
0000060C 1F06 move.b -[A7], D6
0000060E 4EAD 02DA jsr [A5 + 0x2DA /* export_87 */]
00000612 598F subq.l A7, 4
00000614 3F3C AA6E move.w -[A7], 0xAA6E
00000618 7001 moveq.l D0, 0x01
0000061A 1F00 move.b -[A7], D0
0000061C 4EAD 02DA jsr [A5 + 0x2DA /* export_87 */]
00000620 201F move.l D0, [A7]+
00000622 B09F cmp.l D0, [A7]+
00000624 6606 bne +0x8 /* 0000062C */
00000626 3A3C 0200 move.w D5, 0x200
0000062A 6004 bra +0x6 /* 00000630 */
label0000062C:
0000062C 3A3C 0400 move.w D5, 0x400
label00000630:
00000630 BA47 cmp.w D5, D7
00000632 6E04 bgt +0x6 /* 00000638 */
00000634 3E3C A89F move.w D7, 0xA89F
label00000638:
00000638 598F subq.l A7, 4
0000063A 3F07 move.w -[A7], D7
0000063C 1F06 move.b -[A7], D6
0000063E 4EAD 02DA jsr [A5 + 0x2DA /* export_87 */]
00000642 598F subq.l A7, 4
00000644 3F3C A89F move.w -[A7], 0xA89F
00000648 7001 moveq.l D0, 0x01
0000064A 1F00 move.b -[A7], D0
0000064C 4EAD 02DA jsr [A5 + 0x2DA /* export_87 */]
00000650 201F move.l D0, [A7]+
00000652 B09F cmp.l D0, [A7]+
00000654 56C0 sne D0
00000656 4400 neg.b D0
00000658 4CEE 00E0 FFF4 movem.l D5,D6,D7, [A6 - 0xC]
0000065E 4E5E unlink A6
00000660 4E75 rts
fn00000662:
00000662 4E56 FEF0 link A6, -0x0110
00000666 48E7 0118 movem.l -[A7], D7,A3,A4
0000066A 598F subq.l A7, 4
0000066C 2F3C 414C 5254 move.l -[A7], 0x414C5254 /* 'ALRT' */
00000672 3F3C 03E8 move.w -[A7], 0x3E8
00000676 A9A0 syscall GetResource
00000678 265F movea.l A3, [A7]+
0000067A 598F subq.l A7, 4
0000067C 2F3C 4449 544C move.l -[A7], 0x4449544C /* 'DITL' */
00000682 3F3C 03E8 move.w -[A7], 0x3E8
00000686 A9A0 syscall GetResource
00000688 265F movea.l A3, [A7]+
0000068A 598F subq.l A7, 4
0000068C 2F3C 5354 5223 move.l -[A7], 0x53545223 /* 'STR#' */
00000692 3F3C 03E8 move.w -[A7], 0x3E8
00000696 A9A0 syscall GetResource
00000698 265F movea.l A3, [A7]+
0000069A 598F subq.l A7, 4
0000069C 2F3C 414C 5254 move.l -[A7], 0x414C5254 /* 'ALRT' */
000006A2 3F3C 07D5 move.w -[A7], 0x7D5
000006A6 A9A0 syscall GetResource
000006A8 265F movea.l A3, [A7]+
000006AA 598F subq.l A7, 4
000006AC 2F3C 4449 544C move.l -[A7], 0x4449544C /* 'DITL' */
000006B2 3F3C 07D5 move.w -[A7], 0x7D5
000006B6 A9A0 syscall GetResource
000006B8 265F movea.l A3, [A7]+
000006BA 598F subq.l A7, 4
000006BC 2F3C 5354 5223 move.l -[A7], 0x53545223 /* 'STR#' */
000006C2 3F3C 03E8 move.w -[A7], 0x3E8
000006C6 A9A0 syscall GetResource
000006C8 265F movea.l A3, [A7]+
000006CA 598F subq.l A7, 4
000006CC 2F3C 5354 5223 move.l -[A7], 0x53545223 /* 'STR#' */
000006D2 3F3C 03E9 move.w -[A7], 0x3E9
000006D6 A9A0 syscall GetResource
000006D8 285F movea.l A4, [A7]+
000006DA 200B move.l D0, A3
000006DC 6704 beq +0x6 /* 000006E2 */
000006DE 200C move.l D0, A4
000006E0 6614 bne +0x16 /* 000006F6 */
label000006E2:
000006E2 486D E116 pea.l [A5 - 0x1EEA]
000006E6 558F subq.l A7, 2
000006E8 A9AF syscall ResError
000006EA 301F move.w D0, [A7]+
000006EC 48C0 ext.l D0
000006EE 2F00 move.l -[A7], D0
000006F0 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
000006F4 504F addq.w A7, 8
label000006F6:
000006F6 204B movea.l A0, A3
000006F8 A04A syscall HNoPurge
000006FA 204C movea.l A0, A4
000006FC A04A syscall HNoPurge
000006FE 598F subq.l A7, 4
00000700 2F3C 4D45 4343 move.l -[A7], 0x4D454343 /* 'MECC' */
00000706 7000 moveq.l D0, 0x00
00000708 3F00 move.w -[A7], D0
0000070A A9A0 syscall GetResource
0000070C 265F movea.l A3, [A7]+
0000070E 598F subq.l A7, 4
00000710 2F3C 4D45 4343 move.l -[A7], 0x4D454343 /* 'MECC' */
00000716 7002 moveq.l D0, 0x02
00000718 3F00 move.w -[A7], D0
0000071A A9A0 syscall GetResource
0000071C 285F movea.l A4, [A7]+
0000071E 598F subq.l A7, 4
00000720 2F3C 4D45 4343 move.l -[A7], 0x4D454343 /* 'MECC' */
00000726 7004 moveq.l D0, 0x04
00000728 3F00 move.w -[A7], D0
0000072A A9A0 syscall GetResource
0000072C 2D5F FEF4 move.l [A6 - 0x10C], [A7]+
00000730 200B move.l D0, A3
00000732 670A beq +0xC /* 0000073E */
00000734 200C move.l D0, A4
00000736 6706 beq +0x8 /* 0000073E */
00000738 4AAE FEF4 tst.l [A6 - 0x10C]
0000073C 6614 bne +0x16 /* 00000752 */
label0000073E:
0000073E 486D E124 pea.l [A5 - 0x1EDC]
00000742 558F subq.l A7, 2
00000744 A9AF syscall ResError
00000746 301F move.w D0, [A7]+
00000748 48C0 ext.l D0
0000074A 2F00 move.l -[A7], D0
0000074C 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
00000750 504F addq.w A7, 8
label00000752:
00000752 204B movea.l A0, A3
00000754 A04A syscall HNoPurge
00000756 204C movea.l A0, A4
00000758 A04A syscall HNoPurge
0000075A 206E FEF4 movea.l A0, [A6 - 0x10C]
0000075E A04A syscall HNoPurge
00000760 4EAD 06A2 jsr [A5 + 0x6A2 /* export_208 */]
00000764 2078 02AA movea.l A0, [0x000002AA /* ApplZone */]
00000768 2010 move.l D0, [A0]
0000076A 90B8 02AA sub.l D0, [0x000002AA /* ApplZone */]
0000076E 0C80 0004 B000 cmpi.l D0, 0x4B000
00000774 6C0E bge +0x10 /* 00000784 */
00000776 486D E132 pea.l [A5 - 0x1ECE]
0000077A 7094 moveq.l D0, 0xFFFFFF94
0000077C 2F00 move.l -[A7], D0
0000077E 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
00000782 504F addq.w A7, 8
label00000784:
00000784 486E FEF8 pea.l [A6 - 0x108]
00000788 486E FEF0 pea.l [A6 - 0x110]
0000078C 4EAD 032A jsr [A5 + 0x32A /* export_97 */]
00000790 0CAE 0004 B000 FEF8 cmpi.l [A6 - 0x108], 0x4B000
00000798 6C0E bge +0x10 /* 000007A8 */
0000079A 486D E13C pea.l [A5 - 0x1EC4]
0000079E 7094 moveq.l D0, 0xFFFFFF94
000007A0 2F00 move.l -[A7], D0
000007A2 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
000007A6 504F addq.w A7, 8
label000007A8:
000007A8 203C 0000 5000 move.l D0, 0x5000 /* 'P\0' */
000007AE A122 syscall NewHandle, flags=1
000007B0 2B48 E17E move.l [A5 - 0x1E82], A0
000007B4 660E bne +0x10 /* 000007C4 */
000007B6 486D E146 pea.l [A5 - 0x1EBA]
000007BA 7094 moveq.l D0, 0xFFFFFF94
000007BC 2F00 move.l -[A7], D0
000007BE 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
000007C2 504F addq.w A7, 8
label000007C4:
000007C4 203C 0000 1400 move.l D0, 0x1400
000007CA A122 syscall NewHandle, flags=1
000007CC 2B48 E17A move.l [A5 - 0x1E86], A0
000007D0 660E bne +0x10 /* 000007E0 */
000007D2 486D E154 pea.l [A5 - 0x1EAC]
000007D6 7094 moveq.l D0, 0xFFFFFF94
000007D8 2F00 move.l -[A7], D0
000007DA 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
000007DE 504F addq.w A7, 8
label000007E0:
000007E0 41ED 01B2 lea.l A0, [A5 + 0x1B2 /* export_50 */]
000007E4 A04B syscall SetGrowZone
000007E6 558F subq.l A7, 2
000007E8 7001 moveq.l D0, 0x01
000007EA 3F00 move.w -[A7], D0
000007EC 486D DCC6 pea.l [A5 - 0x233A]
000007F0 4EAD 0352 jsr [A5 + 0x352 /* export_102 */]
000007F4 4EBA FDB8 jsr [PC - 0x248 /* 000005AE */]
000007F8 4A00 tst.b D0
000007FA 544F addq.w A7, 2
000007FC 6700 00C0 beq +0xC2 /* 000008BE */
00000800 558F subq.l A7, 2
00000802 2F3C 6576 6E74 move.l -[A7], 0x65766E74 /* 'evnt' */
00000808 486E FEFC pea.l [A6 - 0x104]
0000080C 4EAD 035A jsr [A5 + 0x35A /* export_103 */]
00000810 301F move.w D0, [A7]+
00000812 48C0 ext.l D0
00000814 2E00 move.l D7, D0
00000816 7001 moveq.l D0, 0x01
00000818 C0AE FEFC and.l D0, [A6 - 0x104]
0000081C 3B40 FDA4 move.w [A5 - 0x25C], D0
00000820 558F subq.l A7, 2
00000822 2F3C 6D61 6368 move.l -[A7], 0x6D616368 /* 'mach' */
00000828 486E FEFC pea.l [A6 - 0x104]
0000082C 4EAD 035A jsr [A5 + 0x35A /* export_103 */]
00000830 301F move.w D0, [A7]+
00000832 48C0 ext.l D0
00000834 2E00 move.l D7, D0
00000836 302E FEFE move.w D0, [A6 - 0x102]
0000083A 5540 subq.w D0, 2
0000083C 3B40 DCC8 move.w [A5 - 0x2338], D0
00000840 558F subq.l A7, 2
00000842 2F3C 7072 6F63 move.l -[A7], 0x70726F63 /* 'proc' */
00000848 486E FEFC pea.l [A6 - 0x104]
0000084C 4EAD 035A jsr [A5 + 0x35A /* export_103 */]
00000850 301F move.w D0, [A7]+
00000852 48C0 ext.l D0
00000854 2E00 move.l D7, D0
00000856 3B6E FEFE DCCC move.w [A5 - 0x2334], [A6 - 0x102]
0000085C 558F subq.l A7, 2
0000085E 2F3C 7379 7376 move.l -[A7], 0x73797376 /* 'sysv' */
00000864 486E FEFC pea.l [A6 - 0x104]
00000868 4EAD 035A jsr [A5 + 0x35A /* export_103 */]
0000086C 301F move.w D0, [A7]+
0000086E 48C0 ext.l D0
00000870 2E00 move.l D7, D0
00000872 3B6E FEFE DCCA move.w [A5 - 0x2336], [A6 - 0x102]
00000878 558F subq.l A7, 2
0000087A 2F3C 6174 6C6B move.l -[A7], 0x61746C6B /* 'atlk' */
00000880 486E FEFC pea.l [A6 - 0x104]
00000884 4EAD 035A jsr [A5 + 0x35A /* export_103 */]
00000888 301F move.w D0, [A7]+
0000088A 48C0 ext.l D0
0000088C 2E00 move.l D7, D0
0000088E 3B6E FEFE DCD2 move.w [A5 - 0x232E], [A6 - 0x102]
00000894 558F subq.l A7, 2
00000896 2F3C 7164 2020 move.l -[A7], 0x71642020 /* 'qd ' */
0000089C 486E FEFC pea.l [A6 - 0x104]
000008A0 4EAD 035A jsr [A5 + 0x35A /* export_103 */]
000008A4 301F move.w D0, [A7]+
000008A6 48C0 ext.l D0
000008A8 2E00 move.l D7, D0
000008AA 0CAE 0000 0100 FEFC cmpi.l [A6 - 0x104], 0x100
000008B2 5CC0 sge D0
000008B4 0240 0001 andi.w D0, 0x1
000008B8 48C0 ext.l D0
000008BA 1B40 DCCF move.b [A5 - 0x2331], D0
label000008BE:
000008BE 0C6D 0602 DCCA cmpi.w [A5 - 0x2336], 0x602
000008C4 6C1C bge +0x1E /* 000008E2 */
000008C6 486E FF00 pea.l [A6 - 0x100]
000008CA 3F3C 03E9 move.w -[A7], 0x3E9
000008CE 7004 moveq.l D0, 0x04
000008D0 3F00 move.w -[A7], D0
000008D2 4EAD 034A jsr [A5 + 0x34A /* export_101 */]
000008D6 486E FF00 pea.l [A6 - 0x100]
000008DA 4EAD 00E2 jsr [A5 + 0xE2 /* export_24 */]
000008DE A9F4 syscall ExitToShell
000008E0 584F addq.w A7, 4
label000008E2:
000008E2 4A6D DCC8 tst.w [A5 - 0x2338]
000008E6 6C1C bge +0x1E /* 00000904 */
000008E8 486E FF00 pea.l [A6 - 0x100]
000008EC 3F3C 03E9 move.w -[A7], 0x3E9
000008F0 7005 moveq.l D0, 0x05
000008F2 3F00 move.w -[A7], D0
000008F4 4EAD 034A jsr [A5 + 0x34A /* export_101 */]
000008F8 486E FF00 pea.l [A6 - 0x100]
000008FC 4EAD 00E2 jsr [A5 + 0xE2 /* export_24 */]
00000900 A9F4 syscall ExitToShell
00000902 584F addq.w A7, 4
label00000904:
00000904 4A6D FDA4 tst.w [A5 - 0x25C]
00000908 6704 beq +0x6 /* 0000090E */
0000090A 4EAD 027A jsr [A5 + 0x27A /* export_75 */]
label0000090E:
0000090E 4EBA 017E jsr [PC + 0x17E /* 00000A8E */]
00000912 3E00 move.w D7, D0
00000914 670C beq +0xE /* 00000922 */
00000916 48C7 ext.l D7
00000918 2F07 move.l -[A7], D7
0000091A 4EBA 0236 jsr [PC + 0x236 /* 00000B52 */]
0000091E A9F4 syscall ExitToShell
00000920 584F addq.w A7, 4
label00000922:
00000922 4CEE 1880 FEE4 movem.l D7,A3,A4, [A6 - 0x11C]
00000928 4E5E unlink A6
0000092A 4E75 rts
fn0000092C:
0000092C 4E56 0000 link A6, 0
00000930 48E7 0718 movem.l -[A7], D5,D6,D7,A3,A4
00000934 3A2E 000E move.w D5, [A6 + 0xE]
00000938 266E 0008 movea.l A3, [A6 + 0x8]
0000093C 558F subq.l A7, 2
0000093E 2F3C 434F 4445 move.l -[A7], 0x434F4445 /* 'CODE' */
00000944 A80D syscall Count1Resources
00000946 BA5F cmp.w D5, [A7]+
00000948 670C beq +0xE /* 00000956 */
0000094A 206E 0010 movea.l A0, [A6 + 0x10]
0000094E 30BC 0002 move.w [A0], 0x2
00000952 6000 008C bra +0x8E /* 000009E0 */
label00000956:
00000956 4247 clr.w D7
00000958 6078 bra +0x7A /* 000009D2 */
label0000095A:
0000095A 7000 moveq.l D0, 0x00
0000095C 1F00 move.b -[A7], D0
0000095E A99B syscall SetResLoad
00000960 598F subq.l A7, 4
00000962 2F3C 434F 4445 move.l -[A7], 0x434F4445 /* 'CODE' */
00000968 3F13 move.w -[A7], [A3]
0000096A A81F syscall Get1Resource
0000096C 285F movea.l A4, [A7]+
0000096E 7001 moveq.l D0, 0x01
00000970 1F00 move.b -[A7], D0
00000972 A99B syscall SetResLoad
00000974 200C move.l D0, A4
00000976 660A bne +0xC /* 00000982 */
00000978 206E 0010 movea.l A0, [A6 + 0x10]
0000097C 30BC 0001 move.w [A0], 0x1
00000980 603E bra +0x40 /* 000009C0 */
label00000982:
00000982 598F subq.l A7, 4
00000984 2F0C move.l -[A7], A4
00000986 A821 syscall GetMaxResourceSize/MaxSizeRsrc
00000988 201F move.l D0, [A7]+
0000098A 3C2B 0004 move.w D6, [A3 + 0x4]
0000098E 9C40 sub.w D6, D0
00000990 0C46 0004 cmpi.w D6, 0x4
00000994 6E06 bgt +0x8 /* 0000099C */
00000996 0C46 FFFC cmpi.w D6, 0xFFFC
0000099A 6C0A bge +0xC /* 000009A6 */
label0000099C:
0000099C 206E 0010 movea.l A0, [A6 + 0x10]
000009A0 30BC 0002 move.w [A0], 0x2
000009A4 601A bra +0x1C /* 000009C0 */
label000009A6:
000009A6 4A94 tst.l [A4]
000009A8 6716 beq +0x18 /* 000009C0 */
000009AA 2F0C move.l -[A7], A4
000009AC 4EBA 006A jsr [PC + 0x6A /* 00000A18 */]
000009B0 B06B 0006 cmp.w D0, [A3 + 0x6]
000009B4 584F addq.w A7, 4
000009B6 6708 beq +0xA /* 000009C0 */
000009B8 206E 0010 movea.l A0, [A6 + 0x10]
000009BC 30BC 0002 move.w [A0], 0x2
label000009C0:
000009C0 200C move.l D0, A4
000009C2 6708 beq +0xA /* 000009CC */
000009C4 4A94 tst.l [A4]
000009C6 6604 bne +0x6 /* 000009CC */
000009C8 2F0C move.l -[A7], A4
000009CA A9A3 syscall ReleaseResource
label000009CC:
000009CC 3007 move.w D0, D7
000009CE 5247 addq.w D7, 1
000009D0 504B addq.w A3, 8
label000009D2:
000009D2 BA47 cmp.w D5, D7
000009D4 6F0A ble +0xC /* 000009E0 */
000009D6 206E 0010 movea.l A0, [A6 + 0x10]
000009DA 4A50 tst.w [A0]
000009DC 6700 FF7C beq -0x82 /* 0000095A */
label000009E0:
000009E0 200B move.l D0, A3
000009E2 4CEE 18E0 FFEC movem.l D5,D6,D7,A3,A4, [A6 - 0x14]
000009E8 4E5E unlink A6
000009EA 4E75 rts
fn000009EC:
000009EC 4E56 0000 link A6, 0
000009F0 2F0C move.l -[A7], A4
000009F2 286E 0008 movea.l A4, [A6 + 0x8]
000009F6 558F subq.l A7, 2
000009F8 2F14 move.l -[A7], [A4]
000009FA A80D syscall Count1Resources
000009FC 301F move.w D0, [A7]+
000009FE B06E 000E cmp.w D0, [A6 + 0xE]
00000A02 6C08 bge +0xA /* 00000A0C */
00000A04 206E 0010 movea.l A0, [A6 + 0x10]
00000A08 30BC 0002 move.w [A0], 0x2
label00000A0C:
00000A0C 5C4C addq.w A4, 6
00000A0E 200C move.l D0, A4
00000A10 286E FFFC movea.l A4, [A6 - 0x4]
00000A14 4E5E unlink A6
00000A16 4E75 rts
fn00000A18:
00000A18 4E56 FFFC link A6, -0x0004
00000A1C 48E7 0318 movem.l -[A7], D6,D7,A3,A4
00000A20 266E 0008 movea.l A3, [A6 + 0x8]
00000A24 4247 clr.w D7
00000A26 598F subq.l A7, 4
00000A28 2F0B move.l -[A7], A3
00000A2A 4EAD 02D2 jsr [A5 + 0x2D2 /* export_86 */]
00000A2E 2C1F move.l D6, [A7]+
00000A30 2006 move.l D0, D6
00000A32 D093 add.l D0, [A3]
00000A34 2D40 FFFC move.l [A6 - 0x4], D0
00000A38 2853 movea.l A4, [A3]
00000A3A 6008 bra +0xA /* 00000A44 */
label00000A3C:
00000A3C 7000 moveq.l D0, 0x00
00000A3E 1014 move.b D0, [A4]
00000A40 DE40 add.w D7, D0
00000A42 524C addq.w A4, 1
label00000A44:
00000A44 B9EE FFFC cmpa.l A4, [A6 - 0x4]
00000A48 65F2 bcs -0xC /* 00000A3C */
00000A4A 3007 move.w D0, D7
00000A4C 4CEE 18C0 FFEC movem.l D6,D7,A3,A4, [A6 - 0x14]
00000A52 4E5E unlink A6
00000A54 4E75 rts
fn00000A56:
00000A56 4E56 FFFC link A6, -0x0004
00000A5A 48E7 1300 movem.l -[A7], D3,D6,D7
00000A5E 4246 clr.w D6
00000A60 558F subq.l A7, 2
00000A62 A81C syscall Count1Types
00000A64 3E1F move.w D7, [A7]+
00000A66 6016 bra +0x18 /* 00000A7E */
label00000A68:
00000A68 486E FFFC pea.l [A6 - 0x4]
00000A6C 3F07 move.w -[A7], D7
00000A6E A80F syscall Get1IndType/Get1IxType
00000A70 558F subq.l A7, 2
00000A72 2F2E FFFC move.l -[A7], [A6 - 0x4]
00000A76 A80D syscall Count1Resources
00000A78 DC5F add.w D6, [A7]+
00000A7A 3007 move.w D0, D7
00000A7C 5347 subq.w D7, 1
label00000A7E:
00000A7E 4A47 tst.w D7
00000A80 6EE6 bgt -0x18 /* 00000A68 */
00000A82 3006 move.w D0, D6
00000A84 4CEE 00C8 FFF0 movem.l D3,D6,D7, [A6 - 0x10]
00000A8A 4E5E unlink A6
00000A8C 4E75 rts
fn00000A8E:
00000A8E 4E56 FFFA link A6, -0x0006
00000A92 48E7 0318 movem.l -[A7], D6,D7,A3,A4
00000A96 426E FFFE clr.w [A6 - 0x2]
00000A9A 598F subq.l A7, 4
00000A9C 2F3C 4D45 4343 move.l -[A7], 0x4D454343 /* 'MECC' */
00000AA2 7003 moveq.l D0, 0x03
00000AA4 3F00 move.w -[A7], D0
00000AA6 A81F syscall Get1Resource
00000AA8 265F movea.l A3, [A7]+
00000AAA 200B move.l D0, A3
00000AAC 6606 bne +0x8 /* 00000AB4 */
00000AAE 7001 moveq.l D0, 0x01
00000AB0 6000 0096 bra +0x98 /* 00000B48 */
label00000AB4:
00000AB4 598F subq.l A7, 4
00000AB6 2F0B move.l -[A7], A3
00000AB8 A9A5 syscall GetResourceSizeOnDisk/SizeResource/SizeRsrc
00000ABA 4A9F tst.l [A7]+
00000ABC 660A bne +0xC /* 00000AC8 */
00000ABE 2F0B move.l -[A7], A3
00000AC0 A9A3 syscall ReleaseResource
00000AC2 7000 moveq.l D0, 0x00
00000AC4 6000 0082 bra +0x84 /* 00000B48 */
label00000AC8:
00000AC8 2053 movea.l A0, [A3]
00000ACA 3C10 move.w D6, [A0]
00000ACC 4EBA FF88 jsr [PC - 0x78 /* 00000A56 */]
00000AD0 3E00 move.w D7, D0
00000AD2 BC47 cmp.w D6, D7
00000AD4 6F06 ble +0x8 /* 00000ADC */
00000AD6 3D7C 0001 FFFE move.w [A6 - 0x2], 0x1
label00000ADC:
00000ADC 204B movea.l A0, A3
00000ADE A064 syscall MoveHHi
00000AE0 204B movea.l A0, A3
00000AE2 A029 syscall HLock
00000AE4 598F subq.l A7, 4
00000AE6 2F0B move.l -[A7], A3
00000AE8 4EAD 02D2 jsr [A5 + 0x2D2 /* export_86 */]
00000AEC 201F move.l D0, [A7]+
00000AEE D093 add.l D0, [A3]
00000AF0 2D40 FFFA move.l [A6 - 0x6], D0
00000AF4 2853 movea.l A4, [A3]
00000AF6 544C addq.w A4, 2
00000AF8 603A bra +0x3C /* 00000B34 */
label00000AFA:
00000AFA 2C14 move.l D6, [A4]
00000AFC 3E2C 0004 move.w D7, [A4 + 0x4]
00000B00 0C86 434F 4445 cmpi.l D6, 0x434F4445 /* 'CODE' */
00000B06 6618 bne +0x1A /* 00000B20 */
00000B08 486E FFFE pea.l [A6 - 0x2]
00000B0C 48C7 ext.l D7
00000B0E 2F07 move.l -[A7], D7
00000B10 486C 0006 pea.l [A4 + 0x6]
00000B14 4EBA FE16 jsr [PC - 0x1EA /* 0000092C */]
00000B18 2840 movea.l A4, D0
00000B1A 4FEF 000C lea.l A7, [A7 + 0xC]
00000B1E 6014 bra +0x16 /* 00000B34 */
label00000B20:
00000B20 486E FFFE pea.l [A6 - 0x2]
00000B24 48C7 ext.l D7
00000B26 2F07 move.l -[A7], D7
00000B28 2F0C move.l -[A7], A4
00000B2A 4EBA FEC0 jsr [PC - 0x140 /* 000009EC */]
00000B2E 2840 movea.l A4, D0
00000B30 4FEF 000C lea.l A7, [A7 + 0xC]
label00000B34:
00000B34 4A6E FFFE tst.w [A6 - 0x2]
00000B38 6606 bne +0x8 /* 00000B40 */
00000B3A B9EE FFFA cmpa.l A4, [A6 - 0x6]
00000B3E 65BA bcs -0x44 /* 00000AFA */
label00000B40:
00000B40 204B movea.l A0, A3
00000B42 A02A syscall HUnlock
00000B44 302E FFFE move.w D0, [A6 - 0x2]
label00000B48:
00000B48 4CEE 18C0 FFEA movem.l D6,D7,A3,A4, [A6 - 0x16]
00000B4E 4E5E unlink A6
00000B50 4E75 rts
fn00000B52:
00000B52 4E56 FF00 link A6, -0x0100
00000B56 48E7 0108 movem.l -[A7], D7,A4
00000B5A 49EE FF00 lea.l A4, [A6 - 0x100]
00000B5E 3E2E 000A move.w D7, [A6 + 0xA]
00000B62 6718 beq +0x1A /* 00000B7C */
00000B64 A850 syscall InitCursor
00000B66 2F0C move.l -[A7], A4
00000B68 3F3C 1BCB move.w -[A7], 0x1BCB
00000B6C 7001 moveq.l D0, 0x01
00000B6E 3F00 move.w -[A7], D0
00000B70 4EAD 034A jsr [A5 + 0x34A /* export_101 */]
00000B74 2F0C move.l -[A7], A4
00000B76 4EAD 00E2 jsr [A5 + 0xE2 /* export_24 */]
00000B7A 584F addq.w A7, 4
label00000B7C:
00000B7C 3007 move.w D0, D7
00000B7E 4CEE 1080 FEF8 movem.l D7,A4, [A6 - 0x108]
00000B84 4E5E unlink A6
00000B86 4E75 rts